home *** CD-ROM | disk | FTP | other *** search
- import javax.microedition.io.Connector;
- import javax.microedition.io.HttpConnection;
-
- // $FF: renamed from: c
- public class class_0 implements Runnable {
- // $FF: renamed from: if int
- public static int field_0 = 15;
- // $FF: renamed from: for javax.microedition.io.HttpConnection
- private HttpConnection field_1 = null;
- // $FF: renamed from: a java.lang.Thread
- private static Thread field_2 = null;
- // $FF: renamed from: do int
- private static int field_3 = 0;
-
- private class_0() {
- }
-
- // $FF: renamed from: do () void
- private void method_0() {
- try {
- if (this.field_1 != null) {
- this.field_1.close();
- }
- } catch (Exception var2) {
- }
-
- this.field_1 = null;
- }
-
- // $FF: renamed from: a () void
- public static synchronized void method_1() {
- if (field_2 == null) {
- field_2 = new Thread(new class_0());
- field_2.start();
- }
-
- field_3 = field_0 * 120;
- }
-
- // $FF: renamed from: if () void
- public static synchronized void method_2() {
- field_3 = 0;
- if (field_2 != null && field_2.isAlive()) {
- try {
- field_2.join();
- } catch (Exception var1) {
- }
- }
-
- }
-
- public void run() {
- try {
- this.field_1 = (HttpConnection)Connector.open("http://www.nubix.de/apps/siriusxxx", 1, true);
- this.field_1.getResponseCode();
-
- while(field_3 > 0) {
- Thread.sleep(500L);
- --field_3;
- }
- } catch (Exception var6) {
- } finally {
- this.method_0();
- field_2 = null;
- }
-
- }
- }
-